﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class KhachHangBUS
    {
        KhachHangDAO khDAO = new KhachHangDAO();

        public List<KhachHangDTO> LayDanhSachKhachHangTheoMa(int maKH)
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.LayDanhSachKhachHangTheoMa(maKH);
        }
        public List<KhachHangDTO> LayDanhSachKhachHang()
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.LayDanhSachKhachHang();
        }
        public KhachHangDTO LayDanhSachKhachHangTheoMa2(int maKH)
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.LayDanhSachKhachHangTheoMa2(maKH);
        }
        public string ThemKhachHang(KhachHangDTO kh)
        {
            KhachHangDAO khDAO = new KhachHangDAO();
            return khDAO.ThemKhachHang(kh);
        }
    }
}
